import http from './http'

const MODULE_PREFIX = '/u'

export const register = (userData) => {
  return http.post(MODULE_PREFIX + '/user/register', userData)
}

export function login(username, password){
  return http.post(MODULE_PREFIX + "/user/login", {username, password})
}
